﻿using AutoMapper;
using SGSBillBoard.Context;
using SGSBillBoard.DTO.Model;
using SGSBillBoard.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;

namespace SGSBillBoard.WebAPI.Controllers
{

    public class AdminsController : Controller
    {

        public ActionResult Index()
        {
            ViewBag.Title = "Admin Page";

            return View();
        }
        //private SGSContext context;

        //[Route("api/scores")]
        //public void Post([FromBody] List<ScoreDto> objects)
        //{
        //    context = new SGSContext();
        //    foreach (var obj in objects)
        //    {
        //        context.Scores.Add(Mapper.Map<ScoreDto, Score>(obj));
        //    }
        //    context.SaveChanges();
        //}
    }
}
